package design.event;

import java.util.EventObject;

public class WriterEvent extends EventObject {

    private static final long serialVersionUID = -2594824149603017741L;

    /**
     * 初始化事件源
     *
     * @param writer
     */
    public WriterEvent(Writer writer) {
        super(writer);
    }

    /**
     * 获取事件源
     *
     * @return
     */
    public Writer getWriter() {
        return (Writer) super.source;
    }

}
